package com.sce.core.mongodb;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

/**
 * Created by hylc on 2018/6/18.
 */
@Configuration
@ConfigurationProperties(prefix = "spring.mongodb.secondary")
@EnableMongoRepositories(basePackages = "com.sce.core.mongodb",mongoTemplateRef = SecondaryMongoConfig.MONGO_TEMPLATE)
public class SecondaryMongoConfig {

    protected static final String MONGO_TEMPLATE = "secondaryMongoTemplate";
}
